home *** CD-ROM | disk | FTP | other *** search
/ .net (French) 1996 November / .net Magazine (FR) - Issue 01 - Nov 1996.iso / mac / Courrier / eudora 1.5.4 / Eudora Docs.DOCM / Eudora Docs.DOCM.rsrc / TEXT_148.txt < prev    next >
Text File  |  1995-06-02  |  31KB  |  229 lines

  1.  
  2. Appendixes E-G
  3.  
  4. Appendix E ΓÇô Character Sets
  5. Introduction
  6. This appendix discusses in detail how Eudora handles character sets and character set transliteration.
  7. Terminology
  8. Before discussing how Eudora handles character sets, there are some terms that need to be defined.
  9. A character is a basic unit of written language; a letter, number, punctuation mark (or in some languages, a whole word or phrase).  Major modifications to a letter (for example, capitalization or the addition of an accent mark) make that letter a separate character unto itself.  ΓÇ£AΓÇ¥, ΓÇ£aΓÇ¥, ΓÇ£├áΓÇ¥, and ΓÇ£├íΓÇ¥ are all different characters, as are ΓÇ£BΓÇ¥, ΓÇ£0ΓÇ¥, ΓÇ£.ΓÇ¥, and so on.
  10. A character code is a number that is used to represent a given character.  Since computers really work only with numbers, character codes are required to allow computers to deal with letters, words, and even user manuals.
  11. A character set is a group of characters and their character codes.  For example, we might decide to base a character set on the English alphabet, and simply number the capital letters from 1 to 26:
  12.  
  13. A Simple Character Set
  14. Now, if we wanted to spell ΓÇ£CATΓÇ¥, weΓÇÖd use the numbers 3, 1, and 20.
  15. The ΓÇ£US-ASCIIΓÇ¥ Character Set
  16. The character set described above is a simple one.  Too simple, in fact.  What if you want to spell ΓÇ£The cat sat on the mat.ΓÇ¥?  You canΓÇÖt, because there are only capital letters and no space or period.  A long time ago, a character set was devised to fit much common United States English usage.  This character set has come to be known as ΓÇ£US-ASCII.ΓÇ¥  It is considerably richer than just capital letters:
  17.  
  18. The US-ASCII Character Set
  19. Using US-ASCII, you can write ΓÇ£The cat sat on the mat.ΓÇ¥, using this sequence of numbers: 84, 104, 101, 32, 99, 97, 116, 32, 115, 97, 116, 32, 111, 110, 32, 116, 104, 101, 109, 97, 116, 46.
  20. The US-ASCII character set is the one in widespread use on the Internet.  Most Internet programs assume you are using it, and most Internet programs donΓÇÖt support any other.  However, what if you want to write ΓÇ£Andr├⌐ sat on the mat.ΓÇ¥?  There is no character code in US-ASCII for ΓÇ£├⌐ΓÇ¥; so how do you tell the computer what you mean?
  21. The Macintosh Character Set
  22. The Macintosh allows us to describe our friend Andr├⌐ΓÇÖs perching habits.  The most common Macintosh character set has a character code for ΓÇ£├⌐ΓÇ¥, as well as many other non-US characters.
  23.  
  24.  
  25. The Macintosh Character Set
  26. As you can see, the Macintosh character set is much larger than US-ASCII.  In fact, itΓÇÖs twice as large.  The first half (character codes from 0 to 127) of the Macintosh character set is the same as US-ASCII.  However, there are another 128 characters, with character codes from 128 to 255.
  27. So, using the Macintosh character set, we can write ΓÇ£Andr├⌐ sat on the mat.ΓÇ¥, because there is a character code for ΓÇ£├⌐ΓÇ¥, 142.
  28. The ISO Latin-1 Character Set
  29. Unfortunately, not everyone uses a Macintosh, so not everyone has access to the Macintosh character set.  The character sets that other computers use vary greatly.  Most of them use character sets that are the same as US-ASCII for character codes from 0 to 127.  However, if they provide characters beyond US-ASCII, they often do so with character codes other than the ones chosen by the Macintosh.  That is, on some computers ΓÇ£├⌐ΓÇ¥ doesnΓÇÖt have a character code of 142, but might instead have a character code of 237.  So, if they sent you some text with ΓÇ£Andr├⌐ΓÇ¥ in it, it would come out on your screen as ΓÇ£Andr├îΓÇ¥, which would not be terribly effective.
  30. In order to solve this sort of problem, some standard character sets have been agreed to.  One popular character set is called ΓÇ£ISO Latin-1,ΓÇ¥ or ΓÇ£ISO-8859-1.ΓÇ¥
  31.  
  32. The ISO Latin-1 Character Set
  33. One computer can tell another ΓÇ£LetΓÇÖs use ISO Latin-1,ΓÇ¥ and then both computers will know that the character code for ΓÇ£├⌐ΓÇ¥ is 233 when theyΓÇÖre talking to each other, even though one may usually use 142, and the other might usually use 237.
  34. Quoted-Printable Encoding
  35. There is, however, a problem with using the ISO Latin-1 character set.  SMTP (the protocol used to move mail around the Internet) cannot use character codes greater than 128.  So our beautiful ΓÇ£├⌐ΓÇ¥, with its character code of 233, cannot be sent over the Internet.  If you try, chances are it will get 128 subtracted from its value, making it 105, which is ΓÇ£iΓÇ¥.  ΓÇ£Andr├⌐ΓÇ¥ becomes ΓÇ£AndriΓÇ¥, which just wonΓÇÖt do.
  36. This problem is avoided by the use of ΓÇ£quoted-printableΓÇ¥ encoding.  To represent a character using quoted-printable encoding, your mailer converts the value of the character to two hexadecimal digits and preceed them with an equals sign.  So, ΓÇ£├⌐ΓÇ¥ becomes ΓÇ£=E9ΓÇ¥ while your mail is being sent.  Your recipientΓÇÖs mailer then changes the ΓÇ£=E9ΓÇ¥ back into an ΓÇ£├⌐ΓÇ¥ and:
  37. ┬½Il est d├⌐montr├⌐, disait-il, que les choses ne peuvent ├¬tre autrement; 
  38. car tout ├⌐tant fait pour  une fin, tout est n├⌐cessairement pour la 
  39. meillure fin.┬╗  -- Voltaire, ΓÇ£CandideΓÇ¥
  40.  
  41. Quoted-printable encoding is a wonderful thing when it works.  The problem is that not all mailers are as forward-thinking as Eudora, and they do not all support MIME.  If your recipient doesnΓÇÖt have MIME, they may find the presence of quoted-printable encoding to be more objectionable than the mangling of a few special characters.  They may wish they could get ΓÇ£Andr├⌐ΓÇ¥, but if they canΓÇÖt, they might rather have ΓÇ£AndriΓÇ¥ than ΓÇ£Andr=E9ΓÇ¥.
  42. Also, if quoted-printable encoding is used, it affects more than just international characters.  Since ΓÇ£=ΓÇ¥ is used in the encoding, it must be encoded specially, and all the equals signs in your mail will be turned into ΓÇ£=3DΓÇ¥ while your mail is sent.  Moreover, mail encoded in quoted-printable must have lines no more than 76 characters long; lines longer than that will be split in two, and an equals sign placed at the end of the first line.  All this damage gets repaired if the recipient has a MIME mailer, but if they donΓÇÖt, it can be quite unpleasant.
  43. Disabling Quoted-Printable Encoding
  44. If your recipient doesnΓÇÖt have a MIME mailer, there are several ways to avoid using quoted-printable encoding.  These are described below.
  45. DonΓÇÖt Use International Characters
  46. The simplest way to avoid quoted-printable is to not use any international characters.  Avoid ΓÇ£Andr├⌐ΓÇ¥, and Eudora wonΓÇÖt use quoted-printable.  However, there is a catch to this; when Eudora sends plain text attachments and the Always include Macintosh information is off, Eudora will always use quoted-printable encoding for the attachment.  This is because Eudora has to decide whether or not to use quoted-printable before it begins sending the attachment, when it doesnΓÇÖt yet know if the attachment contains special characters.  Eudora errs on the side of caution, and always uses quoted-printable for plain text attachments.
  47. Use Fix Curly Quotes
  48. The Fix Curly Quotes option is a way to avoid using quoted-printable if your mail contains just a few select special characters; namely the ΓÇ£curly quotesΓÇ¥ (ΓÇ£ΓÇ¥ΓÇÿΓÇÖ), bullet (ΓÇó), and em and en dashes (ΓÇô ΓÇö).  Since these characters often appear in Macintosh documents, but have very reasonable US-ASCII equivalents, some users choose to have these characters changed into US-ASCII.  If you turn Fix Curly Quotes on, these characters will be changed into US-ASCII, and they wonΓÇÖt invoke quoted-printable.
  49. Use the US-ASCII Transliteration Table
  50. Another way to avoid quoted-printable is to install EudoraTables and choose the US-ASCII transliteration table (see the ΓÇ£Transliteration TablesΓÇ¥ section).  This maps all international characters to their nearest US-ASCII equivalents.  ΓÇ£Andr├⌐ΓÇ¥ will become ΓÇ£AndreΓÇ¥; not great, but perhaps better than ΓÇ£AndriΓÇ¥ or ΓÇ£Andr=E9ΓÇ¥.
  51. Turn Off the QP Icon
  52. The QP icon on the icon bar of a composition window controls whether or not Eudora is allowed to use the quoted-printable encoding.  If you uncheck the QP icon, Eudora wonΓÇÖt use quoted-printable for that message, no matter what.
  53. Turn Off the May Use Quoted-Printable Option
  54. The May Use Quoted-Printable switch in the Settings dialog (Sending Mail) controls the default setting of the QP icon.  If you turn this switch off, messages you create will never use quoted-printable encoding.
  55. Transliteration Tables
  56. When Eudora sends mail that includes characters like ΓÇ£├⌐ΓÇ¥, it normally ΓÇ£transliteratesΓÇ¥ them (Eudora changes the character code from the Macintosh character set to the ISO Latin-1 character set).  So, ΓÇ£├⌐ΓÇ¥ gets changed from 142 (the Macintosh character code) to 233 (the ISO Latin-1 character code).  When Eudora receives mail, the reverse is done, and 233 becomes 142.
  57. This process is controlled by ΓÇ£transliteration tablesΓÇ¥ (ΓÇ£tablesΓÇ¥ for short) which are stored as ΓÇÿtaBLΓÇÖ resources.   A table consists of 256 numbers.  Tables are used by using the character code to be transliterated as an index into the table, and replacing it with the value found at that position in the table.  For example, when transliterating an ΓÇ£├⌐ΓÇ¥ from the Macintosh character set to ISO Latin-1, we look at place 142 in the table (142 is the Macintosh character code for ΓÇ£├⌐ΓÇ¥); there we find a 233 (the ISO Latin-1 character code for ΓÇ£├⌐ΓÇ¥), and so we replace 142 with 233.
  58. Eudora comes with four ΓÇÿtaBLΓÇÖ resources.  Their resource idΓÇÖs and purposes are:
  59. 1001    ISO Latin-1 to Macintosh.  This table is used to transliterate from character codes in ISO Latin-1 to character codes in the Macintosh character set.
  60. 1002    Macintosh to ISO Latin-1.  This table is used to transliterate from the Macintosh character set to the ISO Latin-1 character set.
  61. 1003    Identity table.  This table is provided as a reference for people who wish to write their own tables.
  62. 1004    Fix curly quotes table.  This table is used by the Fix Curly Quotes switch, for people who would rather stick to US-ASCII where possible.
  63. More Tables
  64. If ISO-Latin-1 is not the character set for you, it is possible to get Eudora to offer you more choices.  Simply drag the ΓÇ£Eudora TablesΓÇ¥ document into your Preferences Folder:
  65.  
  66. Installing the Eudora Tables document
  67. Once Eudora Tables has been installed, launch Eudora.  The ΓÇ£PriorityΓÇ¥ menus on incoming and outgoing mail now have some new choices.  These choices allow you to control how your mail is transliterated.
  68.              
  69. Priority Menus with Transliteration Tables
  70. Incoming Messages
  71. The table (if any) that is being used to display the current message is checked.  The table that is used by default (if any) to view messages is outlined.
  72. To change the table that is used to display a message, select the table you want to use from the Priority popup menu.  The message is redisplayed using that table, and that table is used to display the message from then on.
  73. Outgoing Messages
  74. The table (if any) that is used when the current message is sent is checked.  The table that is used by default (if any) when sending messages is outlined.
  75. To change the table that is used to send the message, simply select the table you want to use from the Priority popup menu.
  76. Default Tables
  77. If you usually want to view or print your mail with a particular table, hold down the [shift] key when selecting the table from the Priority popup menu for an incoming message.  The table title is outlined in the Priority popup menu to show that it is the default table, and from then on your messages are viewed with that table, unless you specify otherwise.
  78. Note:     If an incoming message uses MIME and Eudora knows the character set the message uses, the message is transliterated before it is stored, and a viewing table is not needed or used.
  79. If you usually want to use a particular table for outgoing mail, hold down the [shift] key when selecting the table from the Priority popup menu for an outgoing message.  The table title is outlined in the Priority popup menu to show that it is the default table, and from then on your messages are sent using that table, unless you specify otherwise.
  80. To clear the default table, hold down the [shift] key and select the outlined table from the appropriate menu.  The default then becomes no table.
  81. No Table At All
  82. If you want a particular message not to be displayed (or sent) with any table, pull down the Priority popup menu.  The table in effect for that particular message is checked.  Choose the checked item; the check mark is erased and no table is used when that message is displayed (or sent).
  83. Summaries
  84. For non-MIME mail, the sender and subject lines are run through the default viewing table when mail arrives, and placed in the message summary (for display in mailbox windows and in the editable subject area).  Subsequent viewing table changes wonΓÇÖt affect the summaries.  For incoming MIME mail, no such transliteration is done, because MIME has a mechanism for specifying character sets in names and subjects.
  85. Ph and Finger
  86. Ph and finger queries are transliterated according to the tables chosen at the bottom of the window:
  87.  
  88. Controlling transliteration in the Ph window
  89. What you type is transliterated with the ΓÇ£Query Table,ΓÇ¥ and the serverΓÇÖs response is transliterated with the ΓÇ£Result Table.ΓÇ¥
  90. Attachments
  91. Transliteration tables are normally not used when sending or receiving attachments, unless those attachments are plain text documents.  If the attachments are plain text documents, they will be transliterated if the ΓÇ£Always As DocumentsΓÇ¥ option is turned off, or if the ΓÇ£AppleDoubleΓÇ¥ attachment type is chosen.
  92. Creating New Tables
  93. If you are trying to use a character set that Eudora doesnΓÇÖt understand, you can build tables for it.  You will need to create two ΓÇÿtaBLΓÇÖ resources, and probably your own ΓÇÿeuTMΓÇÖ resource as well.
  94. Choosing Resource IdΓÇÖs
  95. You need to choose two resource idΓÇÖs for your tables.  These idΓÇÖs should be consecutive, with the lower-numbered id being odd.  The odd-numbered id is used for incoming mail, and the even-numbered table is used for outgoing mail.  In order to avoid id conflicts, take the Macintosh country code, multiply by 10, add 2000, and add 1 if the table is for incoming mail, or 2 if the table is for outgoing mail.  For example, the table that maps Swedish ASCII to Macintosh characters is:
  96. 10*7 (seven is the country code for Sweden) + 2000 + 1 (since the table is used for receiving mail), or 2071.
  97. Creating the ΓÇÿtaBLΓÇÖ Resources
  98. Once youΓÇÖve chose idΓÇÖs, make the ΓÇÿtaBLΓÇÖ resources.  ResEditΓÇÖs general editor works quite well for tables.  You will probably wish to copy the ΓÇÿtaBLΓÇÖ resource id 1003 to serve as a starting point.  That way, you only need modify the parts of the Macintosh character set that need to be transliterated.  The names of the resources will be used in the menus, so name the table resources descriptively.  ItΓÇÖs also a good idea to create your resources in a ΓÇ£plug-inΓÇ¥ file; a file with type ΓÇÿrsrcΓÇÖ and creator ΓÇÿCSOmΓÇÖ.  That way, users can easily install and remove your table, and your table wonΓÇÖt get wiped out if they upgrade their copy of Eudora or EudoraTables.
  99. Creating an euTM
  100. The ΓÇÿeuTMΓÇÖ resource is used for naming character sets.  Character sets must be named so that mailers know which character set is being used.  The official MIME names for character sets are often very unpleasant.  For example, the name for a common Swedish character set is ΓÇ£SEN_850200_B.ΓÇ¥
  101.  
  102. Part of an euTM Resource
  103. The ΓÇÿeuTMΓÇÖ resource is a list of resource idΓÇÖs and names.  When Eudora is sending mail, it will subtract 1 from the tableΓÇÖs resource id, then look for that resource id in all the ΓÇÿeuTMΓÇÖ resources it can find.  When it finds a matching id, the name corresponding to the id is used.
  104. For example, a user choosing the Mac->se table would be using table id 2072.  Eudora subtracts one, finds 2071 in the second position in the ΓÇÿeuTMΓÇÖ resource, and sends the mail with a character set name of ΓÇ£SEN_850200_B.ΓÇ¥
  105. When receiving mail, the process is reversed; the character set name is looked up, the resource id found, and that transliteration table used for the mail.
  106. For your table, you should create an ΓÇÿeuTMΓÇÖ resource, list the resource id of your table (only the odd id), and the name that should be used in mail for the character set.
  107.  
  108.  
  109. Appendix F ΓÇô Using UUCP
  110. Introduction
  111. .i.UUCP;Eudora works with UUCP in almost exactly the same way as it works with the POP and SMTP servers.  .i.Attachments:And UUCP;Attachments are supported, as is regular mail checking and the other features.  It is possible to mix methods; for example, you can use UUCP for reading mail but SMTP for sending it.
  112. Eudora does not come with UUCP.  Three available Macintosh UUCP systems are ΓÇ£.i.uupc;uupc 3.0ΓÇ¥ (dplatt@snulbug.mtview.ca.us), ΓÇ£.i.gnuucp;gnuucpΓÇ¥ (jim@fpr.com) and ΓÇ£.i.UUCP/Connect;UUCP/ConnectΓÇ¥ (formerly ΓÇ£┬╡Access,ΓÇ¥ sales@intercon.com).  ΓÇ£.i.┬╡Access;UUCP/ConnectΓÇ¥ is commercial; the other two are free ware.  Eudora has been tested with all three packages; it works well with uupc 3.0 and UUCP/Connect, but it does not work very smoothly with gnuucp.
  113. Settings Dialog for UUCP
  114.  
  115. Personal Information settings for UUCP
  116.  
  117. Hosts settings for UUCP
  118. POP Account
  119. .i.POP Account:And UUCP;If you are going to receive mail via UUCP, you should put the full path name of your ΓÇ£.i.Mail drop;mail dropΓÇ¥ (the file where UUCP leaves mail for you) in the POP Account field.  Precede the name with an exclamation point.
  120. MacTCP/Communications Toolbox
  121. This setting doesnΓÇÖt matter if youΓÇÖre doing pure UUCP mail.  If youΓÇÖre trying to mix UUCP with SMTP or POP, set this to whatever is appropriate for your SMTP or POP connection.
  122. SMTP Server
  123. .i.SMTP Server:And UUCP;If you want to send mail via UUCP, several items have to go in the SMTP Server field.  Each one should be preceded by an exclamation point.  The items are, in order:
  124. mac - the UUCP name of your Macintosh.
  125. spoolpath: - the full path name of the UUCP working directory.
  126. user - your user name on your mac
  127. 0000 - a four-digit sequence number; will be incremented by Eudora.
  128. Return Address
  129. .i.Return Address:And UUCP;If you use UUCP for reading your mail, you must put your correct return address in the Return Address field.  It is absolutely vital that this address be correct.  If itΓÇÖs wrong, no one is able to reply to your mail and the mail transport system is unable to tell you your mail canΓÇÖt be delivered.
  130. Operation
  131. Almost all Eudora features work normally with UUCP.  The one exception is the .i.Leave Mail on Server option:And UUCP;Leave Mail On Server (LMOS) option.  When Eudora is used with POP, setting LMOS results in Eudora downloading only unread mail.  With UUCP, however, Eudora does not distinguish between read and unread mail; it downloads all the mail at each check.  This results in duplicate messages, unless you use some other means to clean out your mail drop between Eudora checks.  It is suggested that the LMOS option remain turned off when using UUCP.
  132. Internals
  133. Mail Drop Format
  134. .i.Maildrop:UUCP:Format;Eudora expects the mail drop to be in standard UNIX mailbox format, with UUCP envelopes (ΓÇ£From ΓÇ¥ lines) at the beginning of each message.  The mail drop should use carriage returns (not line feeds) for new lines.
  135. Working Files
  136. .i.UUCP:Working Files;When sending mail, Eudora creates two files in the UUCP work directory.  These files are:
  137. D.mac0####
  138. .i.UUCP:Working files:D.relay0####;The message itself is put in this file.  As distributed, Eudora uses returns for new lines in this file.  That can be changed by editing the last characters of STR# resource id 8000, string 5; Eudora will use whatever non-printable characters are at the end of the string.  The mail begins with a UUCP envelope.  The ΓÇ£####ΓÇ¥ stands for the four-digit sequence number mentioned in the ΓÇ£SMTP ServerΓÇ¥ section above.  It increments as each message is sent.
  139. X.mac0####
  140. .i.UUCP:Working files:D.mac0####;Commands for the UUCP system are put in this file.  These commands are all editable via ResEdit; they are distributed with returns at the ends.
  141. U user mac
  142.     ; identifies you (STR# id 8000, string 1)
  143. F D.mac0####
  144.     ; this file contains your message (8000,2)
  145. I D.mac0####
  146.     ; use your mail for input (8000,3)
  147. C rmail recipient...
  148.     ; all recipients of the mail are listed here (8000,4)
  149.  
  150.  
  151. Appendix G ΓÇô MIME and Mapping
  152. What is MIME?
  153. ΓÇ£MIMEΓÇ¥ stands for Multipurpose Internet Mail Extensions.  MIME serves two major purposes ΓÇô it allows mail applications to tell one another what sort of data is in mail, and it also provides standard ways for mail applications to encode data so that it can be sent through the Internet mail system.
  154. MIME Encodings
  155. The Internet uses the ΓÇ£SMTPΓÇ¥ protocol to move mail around.  SMTP is limited to the US-ASCII character set (see Appendix E).  This is a problem for people who speak languages other than American English and so need accented characters or non-American letters, or for people who want to use special symbols like section mark (┬º).
  156. MIME provides a way around this restriction.  It offers two encodings, ΓÇ£quoted-printableΓÇ¥ and ΓÇ£base64.ΓÇ¥  These encodings use US-ASCII character codes to represent any sort of data you like, including special characters or even non-text data.
  157. ΓÇ£Quoted-printableΓÇ¥ is used for data that is mostly text, but has special characters or very long lines.  ItΓÇÖs very simple.  Quoted-printable looks just like regular text, except when a special character is used.  The special character is replaced with an ΓÇ£=ΓÇ¥ and two more characters that represent the character code of the special character.  So, a section mark (┬º) in quoted-printable looks like ΓÇ£=A8ΓÇ¥.  
  158. However, there are some other things that quoted-printable does.  For one, since it uses an ΓÇ£=ΓÇ¥ to mean something special, equal signs must themselves be encoded (as ΓÇ£=3DΓÇ¥).  Second, no line in quoted-printable is allowed to be more than 76 characters long.  If your mail has a line longer than 76 characters, the quoted-printable encoding will break your line in two and put an ΓÇ£=ΓÇ¥ at the end of the first line, to signal to the mail reader at the other end that the two lines are really supposed to be all one line.  Finally, a few mail systems either add or remove spaces from the ends of lines.  So, in quoted-printable, any space at the end of a line gets encoded (as ΓÇ£=20ΓÇ¥), to protect it from such mail systems.
  159. LetΓÇÖs try an example.  HereΓÇÖs a passage of text that you might type on your Macintosh:
  160. ┬½Il est d├⌐montr├⌐, disait-il, que les choses ne peuvent ├¬tre autrement; car tout ├⌐tant fait pour une fin, tout est n├⌐cessairement pour la meillure fin.┬╗
  161.  
  162. Without any encoding, this might show up on your recipientΓÇÖs screen as:
  163. +Il est dimontri, disait-il, que les choses ne peuvent btre autrement; car tout itant fait pour une fin, tout est nicessairement pour la meillure fin.;
  164.  
  165. This corruption happens because SMTP cannot handle the special characters.  However, if you and your recipient both have MIME, quoted-printable encoding would be used, and your text would show up properly:
  166. ┬½Il est d├⌐montr├⌐, disait-il, que les choses ne peuvent ├¬tre autrement; car tout ├⌐tant fait pour une fin, tout est n├⌐cessairement pour la meillure fin.┬╗
  167.  
  168. While your mail was actually in transit, however, it would have looked like:
  169. =ABIl est d=E9montr=E9, disait-il, que les choses ne peuvent =EAtre =
  170. autrement; car tout =E9tant fait pour une fin, tout est n=E9cessairement =
  171. pour la meillure fin.=BB
  172.  
  173. Base64 encoding is another way to protect binary data from the SMTP mail system.  However, Base64 makes no attempt to be legible, and is most appropriate for non-text data.
  174. MIME Labelling
  175. The other important part of MIME is that it lets mailers communicate what kind of data is in a message (or part of a message).  The primary mechanism used for this is the Content-Type header:
  176.     Content-Type: text/plain; charset=iso-8859-1
  177. A content-type header is divided into three parts; the content type, the content subtype, and the parameters.  In this case, the content type is ΓÇ£text,ΓÇ¥ meaning the message contains mostly legible text.  The content subtype is ΓÇ£plain,ΓÇ¥ which means there arenΓÇÖt any formatting commands or anything like that embedded in the text.  Finally, ΓÇ£charset=iso-8859-1ΓÇ¥ is a parameter; in this case it identifies the character set the message uses.
  178. The major content types are:
  179. text        legible text
  180. image        pictures and graphics
  181. audio        sound
  182. video        moving pictures
  183. message    messages or pieces of messages
  184. multipart    several different kinds of data in a single message
  185. Practical Issues
  186. There are really only two things you sometimes need to do with Eudora and MIME.  One is that it may occasionally be necessary to turn off quoted-printable encoding.  Another is that you may want to know how to define mappings between MIME types and Macintosh types.
  187. Turning Off Quoted-Printable
  188. Eudora automatically uses quoted-printable encoding if your mail contains special characters.  Eudora also uses quoted-printable encoding for attached plain text files.  If your recipients donΓÇÖt have MIME, quoted-printable may hurt more than it helps.  If thatΓÇÖs the case, just turn off the QP icon when you are sending text files to those recipients.
  189.  
  190. Turning Off Quoted-Printable Encoding
  191. Mapping Between MIME Types and Macintosh Types
  192. When you send attached files to other Eudora users, Eudora automatically knows what kind of data is in the files, because Eudora sends along special information with the file.  However, if youΓÇÖre sending the file to a non-Macintosh user, or receiving files from a non-Macintosh user, itΓÇÖs important to get the right MIME type information on the file, or for Eudora to understand what the MIME type information means.
  193. Eudora knows about some MIME types.  However, since new MIME types are being defined all the time, it may be necessary to add to EudoraΓÇÖs knowledge from time to time.  If youΓÇÖre familiar with ResEdit, this isnΓÇÖt too hard to do.
  194. The way Eudora maps between MIME and Macintosh types is with EuIM and EuOM resources.  EuOM resources are used for sending attachments, EuIM for receiving.  They have the same basic structure.
  195. EuOM and EuIM resources are lists of individual elements called ΓÇ£maps.ΓÇ¥  Each map describes a Macintosh document type (or MIME data type) and then lists what MIME data type (or Macintosh document type) it corresponds to.  For any given type, Eudora looks through all the maps in all the EuOM or EuIM resources, and uses the best match.
  196. Note:     EuOM and EuIM resources are also used when uuencoding and uudecoding files, so that filename suffixes can be mapped to and from Macintosh types.  A good set of EuIM and EuOM resources can substantially improve document exchange with systems that use uuencode.
  197. Sending
  198. When you create a map in an EuOM resource, you use the ΓÇ£Creator CodeΓÇ¥ and ΓÇ£TypeΓÇ¥ fields to specify what documents the map applies to.  These fields should be filled with the four-byte creator code or Macintosh type of the documents you want to send.  If you leave the Creator Code blank, but fill in the type, the map is used for any document of that type, regardless of creator.  If you fill in both Creator Code and Type, a document has to match both for the map to be used.  Given the choice, Eudora uses the map that matches both creator and type.
  199. The other parts of the map are used to construct the MIME information.  Content Type and Content Subtype are the MIME type and subtype to use for the document.  Filename suffix allows you to tell Eudora to add a suffix to the filename, as an extra hint to the receiving system (for example, you might have Eudora add ΓÇ£.xlsΓÇ¥ to Excel files).
  200. ΓÇ£Newline conversion?ΓÇ¥ tells Eudora whether or not to convert carriage returns in the file to carriage return, linefeed.  Usually, you should set this to 1 for text data, but to 0 for binary files.
  201. Finally, ΓÇ£May suppress resource fork?ΓÇ¥ is used in conjunction with EudoraΓÇÖs Always include Macintosh information.  If you set this to 1, and Always As Documents is off, Eudora wonΓÇÖt send Macintosh type and creator information with the file, and wonΓÇÖt send the resource fork.  Instead, it will just send the data fork with the MIME information attached to it.
  202.  
  203. An Example Map in an EuOM Resource
  204. The map above says that all files of type ΓÇ£EPSF,ΓÇ¥ no matter what the creator, should be sent as ΓÇ£application/postscript,ΓÇ¥ that ΓÇ£.epsΓÇ¥ should be added to the filename, that carriage returns should not be turned into carriage return/linefeed pairs, and that when the Always include Macintosh information is off, the resource fork wonΓÇÖt be sent.
  205. Receiving
  206. EuIM resources are used for receiving files.  TheyΓÇÖre pretty much the same as EuOM resources, except that the MIME type and subtype are used for matching, and the Macintosh creator code and type are applied to the file received.
  207. As with EuOM resources, you can leave parts blank.  If you want to match all files with an ΓÇ£.epsΓÇ¥ suffix, regardless of the MIME type or subtype, leave the type and subtype blank.  If you donΓÇÖt care what the filename suffix is, leave that blank and match with the MIME type and/or subtype only.  Again, as with EuOM resources, Eudora will choose the map that matches best.
  208. With EuIM resources, itΓÇÖs sometimes a good idea to use several maps to catch all important cases.  For example, it might be a good idea to have three maps for dealing with PostScript files, as follows:
  209. Content Type: application
  210. Content Subtype: postscript
  211. Filename suffix: 
  212. Creator Code: mlpr
  213. Type: TEXT
  214. This map will catch most MIME PostScript files, and set their creator to MacLPR.
  215. Content Type: 
  216. Content Subtype: 
  217. Filename suffix: .eps
  218. Creator Code: dPro
  219. Type: EPSF
  220. This map will match any incoming file with a suffix of ΓÇ£.eps,ΓÇ¥ regardless of the MIME type info, and set itΓÇÖs type to ΓÇ£EPSFΓÇ¥ and creator to ΓÇ£dProΓÇ¥ (MacDraw Pro).  But what if a file comes in with a suffix of ΓÇ£.epsΓÇ¥ and a MIME type/subtype of ΓÇ£application/postscriptΓÇ¥?  Which map gets used?  The first one gets used; when Eudora has a choice between matching a suffix and matching MIME type information, MIME wins.  A third map may be in order:
  221. Content Type: application
  222. Content Subtype: postscript
  223. Filename suffix: .eps
  224. Creator Code: dPro
  225. Type: EPSF
  226. This makes application/postscript files with suffixes of ΓÇ£.epsΓÇ¥ get type EPSF and creator dPro.
  227.  
  228. ┬á       Return to Table of Contents
  229.